<?php
//个人空间 形如: /space/abc23
$router->add(
    "/space/{id:[a-zA-Z0-9\-_]{0,14}}",
    array(
     	'module' => 'space',
        "controller" => 'index',
        "action"     => 'index',
    )
);
//个人空间 日记 形如: /space/2/notes
$router->add(
    "/space/{id:[a-zA-Z0-9\-_]{0,14}}/notes",
    array(
     	'module' => 'space',
        "controller" => 'notes',
        "action"     => 'index',
    )
);
//个人空间 日记分页 形如: /space/1423/notes/page/2
$router->add(
    "/space/{id:[a-zA-Z0-9\-_]{0,14}}/notes/page/:int",
    array(
     	'module' => 'space',
        "controller" => 'notes',
        "action"     => 'index',
        "id"         => 1,
    	"page"         => 2,
    )
);

//个人空间 相册 形如: /space/2/photos
$router->add(
    "/space/{id:[a-zA-Z0-9\-_]{0,14}}/photos",
    array(
     	'module' => 'space',
        "controller" => 'photos',
        "action"     => 'index',
    )
);